package com.srs.model.info;

import java.text.DecimalFormat;

public class GrxPercent {
	private Integer agentId;
	private Integer nbSamplesGood;
	private Integer nbSamplesTotal;
	private Double percentSamplesGood = new Double(0);
	private String onDate;

	/**
	 * @return the agentId
	 */
	public Integer getAgentId() {
		return agentId;
	}

	/**
	 * @param agentId
	 *            the agentId to set
	 */
	public void setAgentId(Integer agentId) {
		this.agentId = agentId;
	}

	/**
	 * @return the onDate
	 */
	public String getOnDate() {
		return onDate;
	}

	/**
	 * @param onDate
	 *            the onDate to set
	 */
	public void setOnDate(String onDate) {
		this.onDate = onDate;
	}

	/**
	 * @return the nbSamplesGood
	 */
	public Integer getNbSamplesGood() {
		return nbSamplesGood;
	}

	/**
	 * @param nbSamplesGood
	 *            the nbSamplesGood to set
	 */
	public void setNbSamplesGood(Integer nbSamplesGood) {
		this.nbSamplesGood = nbSamplesGood;
	}

	/**
	 * @return the nbSamplesTotal
	 */
	public Integer getNbSamplesTotal() {
		return nbSamplesTotal;
	}

	/**
	 * @param nbSamplesTotal
	 *            the nbSamplesTotal to set
	 */
	public void setNbSamplesTotal(Integer nbSamplesTotal) {
		this.nbSamplesTotal = nbSamplesTotal;
	}

	/**
	 * @return the percentSamplesGood
	 */
	public Double getPercentSamplesGood() {
		return percentSamplesGood;
	}

	/**
	 * @return the percentSamplesGood
	 */
	public String getPercentSamplesGoodStr() {
		DecimalFormat df = new DecimalFormat("##.##");
		return df.format(percentSamplesGood);			
	}	
	
	/**
	 * @param percentSamplesGood
	 *            the percentSamplesGood to set
	 */
	public void setPercentSamplesGood(Double percentSamplesGood) {
		this.percentSamplesGood = percentSamplesGood;
	}
}
